package com.itheima;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;
import com.itheima.pojo.User;

import java.util.List;
import java.util.Set;

public interface UserService {
    User findByUserName(String username);

    PageResult findPage(QueryPageBean queryPageBean);

    User findUserById(Integer id);

    List<User> findUserByRoleId(Integer id);

    void deleteById(Integer id);

    void editRole(User user);

    List<Integer> findRoleIdByUserId(Integer id);

    Set<Role> findRoleById(Integer id);
}
